import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter);

import Home from "../views/Home/Home";
import My from "../views/My/My";
import Detail from "../views/Detail/Detail";
const router = new VueRouter({
  routes: [
    {
      path: "/home",
      component: Home,
    },
    {
      path: "/my",
      component: My,
    },
    {
      // 动态导航
      path: "/detail/:id",
      component: Detail,
    },
    // {
    //   // 动态导航
    //   path: "/detail/:id/hehe/:us",
    //   component: Detail,
    // },
  ],
});
export default router;
// this.$router.push({path:'/detail/1233'})
